package domain;

public class Student {
    private String account;
    private String name;
    private Teacher teacher;

    public Student() {
    }

    public Student(String account, String name, Teacher teacher) {
        this.account = account;
        this.name = name;
        this.teacher = teacher;
    }

    public String getAccount() {
        return account;
    }

    public Student setAccount(String account) {
        this.account = account;
        return this;
    }

    public String getName() {
        return name;
    }

    public Student setName(String name) {
        this.name = name;
        return this;
    }

    public Teacher getTeacher() {
        return teacher;
    }

    public Student setTeacher(Teacher teacher) {
        this.teacher = teacher;
        return this;
    }

    @Override
    public String toString() {
        return "Student{" +
                "account='" + account + '\'' +
                ", name='" + name + '\'' +
                ", teacher=" + teacher.toString() +
                '}';
    }
}
